
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      >
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15"/>
        <title>Site Music Waves</title>

        <link href="cssMusiqueFaces.css" rel="stylesheet" type="text/css" />
         
    </h:head>
    <h:body>
        <div id="conteneur">
             <div id="header"><img src="Images/BandeauMusique.png" width="800" height="200" alt="" /></div>
             <div id="wrap">
                <div id="sidebar">
                    <p> lateral </p>
                </div>
                <div id="contenu" class="listeArtiste">
                   <h:dataTable
                        value="#{managerArtistsBean.listArtists}"
                        var="artist">
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="Id Artiste"/>
                            </f:facet>
                            <h:outputText value="#{artist.id}" />
                        </h:column>

                       <h:column>
                           <f:facet name="header">
                                <h:outputText value="Pr&eacute;nom"/>
                            </f:facet>
                           <h:outputText value="#{artist.firstname}"/>
                       </h:column>

                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="Nom"/>
                            </f:facet>
                            <h:outputText value="#{artist.lastname}"/>
                        </h:column>

                       <h:column>
                           <h:form>
                               <h:commandLink action="/faces/edition/modifyArtist.xhtml">
                                   Edit
                                   <f:setPropertyActionListener value="#{artist}" target="#{managerArtistsBean.artistTampon}"/>
                               </h:commandLink>
                           </h:form>
                       </h:column>
                    </h:dataTable>
                 </div>

                 <div id="contenu" class="listeChansons">
                     <h:dataTable
                        value="#{managerSongsBean.listSongs}"
                        var="chanson">
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="Id Chanson"/>
                            </f:facet>
                            <h:outputText value="#{chanson.id}" />
                        </h:column>

                         <h:column>
                            <f:facet name="header">
                                <h:outputText value="Titre"/>
                            </f:facet>
                            <h:outputText value="#{chanson.title}" />
                        </h:column>
                            
                         <h:column>
                            <f:facet name="header">
                                <h:outputText value="Id Artiste"/>
                            </f:facet>
                            <h:outputText value="#{chanson.artistId}" />
                         </h:column>

                         <h:column>
                           <h:form>
                               <h:commandLink action="/faces/edition/modifySong.xhtml">
                                   Edit
                                   <f:setPropertyActionListener value="#{chanson}" target="#{managerSongsBean.songTampon}"/>
                               </h:commandLink>
                           </h:form>
                       </h:column>
                     </h:dataTable>
                 </div>
             </div>
             <div id="footer">
                <p>bas de page</p>
            </div>
        </div>
    </h:body>
</html>
